﻿package ui {
	import flash.display.Sprite;
	public class UIItem extends Sprite {
		public static var gridHeight:int = 24;
		protected static var nextTabIndex:int = 0;
		public var marginTop:Number = 0;
		public var marginLeft:Number = 0;
		public var marginRight:Number = 0;
		public var marginBottom:Number = 0;
		protected function applyOptions(options:Object = null):void {
			if (options) {
				for (var p:String in options) {
					try {
						this[p] = options[p];
					} catch (e:ReferenceError) {
						throw new ArgumentError("There is no option/property with the name "+p+".");
					}
				}
			}
		}
		override public function get height():Number { return gridHeight; }
		
		override public function set height(value:Number):void {
			super.height = value;
		}
	}
}